/************************* 版权声明 *********************************
 * 
 * 版权所有：Apache License 2.0
 * 
 ************************* 版本声明 *********************************
 *@since jdk1.5
 *@version 0.1
 ************************* 变更记录 *********************************
 *
 * 创建者：bijiqiang Email:bijiqiang@gmail.com   创建日期： 2009-12-28
 * 创建记录：创建类结构。
 * 
 * 修改者：       修改日期：
 * 修改记录：
 *
 * 修改者：       修改日期：
 * 修改记录：
 * ……
 ************************* To  Do *********************************
 *
 * 1、实现所有未实现的方法（抛出UnsupportedOperationException的方法）。
 * 
 ************************* 随   笔 *********************************
 *
 * 
 * 
 ******************************************************************
 */
package com.realgodo.site.web;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.realgodo.site.entity.site.Recruit;
import com.realgodo.site.service.site.RecruitManager;

public class RecruitController extends ControllerSupport{

	/***/
	private static final long serialVersionUID = -3383036410129965815L;
	@Autowired
	private RecruitManager recruitManager;
	private List<Recruit> recruits;
	private final int MAX_RESULT = 10;
	private Recruit recruit;
	private Long id;

	public String index() throws Exception {
		recruits = this.recruitManager.findFontRecruits(MAX_RESULT);
		return "recruit";
	}

	public String show() throws Exception {
		if (null != getId()) {
			this.recruit = this.recruitManager.get(getId());
		}
		return "show";
	}

	public List<Recruit> getRecruits() {
		return recruits;
	}

	public void setRecruits(List<Recruit> recruits) {
		this.recruits = recruits;
	}

	public Recruit getRecruit() {
		return recruit;
	}

	public void setRecruit(Recruit recruit) {
		this.recruit = recruit;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
